package com.md24housecall.util;

import java.io.File;

import com.md24housecall.activity.MainActivity;

import android.os.Environment;

public class GlobalConstant {
	private static GlobalConstant mInstance;
	public boolean isValidCode = false;
	public boolean isStartRecording = false;
	public String code = "";
	public float rating = 0;
	public String bg_ChoosePeople = "";
	public String btn_ChoosePeople1 = "";
	public String btn_ChoosePeople2 = "";
	public String btn_ChoosePeople3 = "";
	public String btn_ChoosePeople4 = "";
	public int width = 0;
	public int heigth = 0;
	public String callFrom = "";
	public long startTime = 0;
	public String callTime = "";
	public String callTo = "";
	public File file = Environment.getExternalStorageDirectory();
//	public MainActivity mainActivity;
	public static String skypeProvider = "md24telemedphoenix";
	public static String skypeScheduler = "schedulermd24";
	public static String skypeMedicalassistant = "Medicalassistantmd24";
	public static String skypeBilling = "paymentmd24";
	public final String KEYCODE = "keycode";
	public final String KEYURL = "keyurl";
	public final String KEYUSERTYPE="keyusertype";
	public final String KEYFIRSTRUN = "keyfirstrun";
	public final String KEYAGREECHECKBOX = "keyagree";
	public final String KEYTERMSANCONDITION = "keyeula";
	public final String KEYPARTNERDETAIL = "keypartner_detail";
	public final String KEYUSERID="key_userId";
	public final String EMAIL = "media@md24housecall.com";
	public final String PHONENUMBER = "8886324758";
	public static final String TAG = "DucNM";
	public final int AUDIO_TYPE = 1;
	public final int VIDEO_TYPE = 2;
	public final String GOOGLEPLAYKEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAk+l2E+fHpijI4aZbSXJIprgpUuffFA5j/no6nnCxR6hKtWCTKZFugWmgZwb/timNB3WICMYCgwmLbj2blvSjgJ39GbNzS3bfDFb5XYYgmBvU5MIjPuY0pkBOZCKNnfaAuQDroAMtcI39BM/16Ci0eenep5AAH2QSd9luOk+4Km4Sia0CP92+LA5Gbc12IIOwD0zAE1SrpEBST0itYqqAG/78XWCjRpqsgX3+i0T45e/iZEANi1MEtawCWTiHE7EwsVtJrttIspt1+K8wZapzzHLsIhViMf7BmgIgVbiWDqd9rDE23KINxlugIni/SaCvgw3TyqA0fYjheAfFgYKV0wIDAQAB";
	public final int COMPANYTYPE=1;
	public final int SINGLETYPE=0;
	public final String ACTON_REFRESH="com.md24.housecall.refresh";
	public boolean isRetryRequestCategory=false;
	public boolean isRetryRequestPartner=false;
	public boolean isLoginSkype=true;
	public final int ITEMCATEGORY_NO=3;
	public final int ITEMPARTNER_NO=3;
	public final int ITEMIHEATH_NO=50;
	public boolean isUpdateIhealthUser=false;
	public boolean isUpdatePatient=false;
	/*Start ihealth*/
	//start: use for test
	public final String CLIENTID_TEST="fe594b88d99e4ae9933a3e1dc3f6d269";
	public final String CLIENTSECRET_TEST="b37905fa51d44364899014a61c5159dc";
	
	public final String SC_ACTIVITY_TEST="8ff3acdea5954dc2890786c58b00548a";
	public final String SV_ACTIVITY_TEST="456cd3522e1c43cdb3e6351d66d77e5c";
	
	public final String SC_BG_TEST="8ff3acdea5954dc2890786c58b00548a";
	public final String SV_BG_TEST="131a5d5be37f49ce96a2bd014b8ed305";
	
	public final String SC_BP_TEST="8ff3acdea5954dc2890786c58b00548a";
	public final String SV_BP_TEST="3aaee8e84ee74722b1a2718e9d67d047";
	
	public final String SC_FOOD_TEST="8ff3acdea5954dc2890786c58b00548a";
	public final String SV_FOOD_TEST="0c80fdf2cd2d4da9893b8e8e20e3b5cd";
	
	public final String SC_SLEEP_TEST="8ff3acdea5954dc2890786c58b00548a";
	public final String SV_SLEEP_TEST="46d4846faba345ada34943144bc85af9";
	
	public final String SC_SPO2_TEST="8ff3acdea5954dc2890786c58b00548a";
	public final String SV_SPO2_TEST="7e3dc3c52c4643609d46231cb56ae8df";
	
	public final String SC_SPORT_TEST="8ff3acdea5954dc2890786c58b00548a";
	public final String SV_SPORT_TEST="de97b4a13dfb4b3dafa146feaa4a6154";
	
	public final String SC_USERINFO_TEST="8ff3acdea5954dc2890786c58b00548a";
	public final String SV_USERINFO_TEST="b01a101a22244d758744abc67e86b4de";
	
	public final String SC_WEIGHT_TEST="8ff3acdea5954dc2890786c58b00548a";
	public final String SV_WEIGHT_TEST="64ff7a87ff3a46f99367be8077252895";
	//end: use for test
	
	//start: use for release
	public final String CLIENTID_RELEASE="ba5beb07454243c18feb78499406910c";
	public final String CLIENTSECRET_RELEASE="4e126d7fc5c840febdc4323e665b014a";
	
	public final String SC_ACTIVITY_RELEASE="78e1b16e18cf42e389702ae464b61e44";
	public final String SV_ACTIVITY_RELEASE="8d08571a7e4f4549b2d3cb692a202243";
	
	public final String SC_BG_RELEASE="78e1b16e18cf42e389702ae464b61e44";
	public final String SV_BG_RELEASE="bf703909ae5c4f30b6dea59aef196e79";
	
	public final String SC_BP_RELEASE="78e1b16e18cf42e389702ae464b61e44";
	public final String SV_BP_RELEASE="35bb5b8693db4032a5e82fe52f716ad8";
	
	public final String SC_FOOD_RELEASE="78e1b16e18cf42e389702ae464b61e44";
	public final String SV_FOOD_RELEASE="c2b70e0a84334b1eb91853669d3eb803";
	
	public final String SC_SLEEP_RELEASE="78e1b16e18cf42e389702ae464b61e44";
	public final String SV_SLEEP_RELEASE="b2e7f7f71ae2483fa7f661c571dcefe1";
	
	public final String SC_SPO2_RELEASE="78e1b16e18cf42e389702ae464b61e44";
	public final String SV_SPO2_RELEASE="141719a656c049d6824aa1d07b6f7cbd";
	
	public final String SC_SPORT_RELEASE="78e1b16e18cf42e389702ae464b61e44";
	public final String SV_SPORT_RELEASE="971ec6b95eb845b8a91948883d5c06b3";
	
	public final String SC_USERINFO_RELEASE="78e1b16e18cf42e389702ae464b61e44";
	public final String SV_USERINFO_RELEASE="0bb553694122448bb8e7ea49947620b9";
	
	public final String SC_WEIGHT_RELEASE="78e1b16e18cf42e389702ae464b61e44";
	public final String SV_WEIGHT_RELEASE="3f5c37742f774fd79e5da00843cb88f2";
	//end: use for release
	
	public final String CLIENTID=MyConfig.DEBUG?CLIENTID_TEST:CLIENTID_RELEASE;
	public final String CLIENTSECRET=MyConfig.DEBUG?CLIENTSECRET_TEST:CLIENTSECRET_RELEASE;
	
	public final String SC_ACTIVITY=MyConfig.DEBUG?SC_ACTIVITY_TEST:SC_ACTIVITY_RELEASE;
	public final String SV_ACTIVITY=MyConfig.DEBUG?SV_ACTIVITY_TEST:SV_ACTIVITY_RELEASE;
	
	public final String SC_BG=MyConfig.DEBUG?SC_BG_TEST:SC_BG_RELEASE;
	public final String SV_BG=MyConfig.DEBUG?SV_BG_TEST:SV_BG_RELEASE;
	
	public final String SC_BP=MyConfig.DEBUG?SC_BP_TEST:SC_BP_RELEASE;
	public final String SV_BP=MyConfig.DEBUG?SV_BP_TEST:SV_BP_RELEASE;
	
	public final String SC_FOOD=MyConfig.DEBUG?SC_FOOD_TEST:SC_FOOD_RELEASE;
	public final String SV_FOOD=MyConfig.DEBUG?SV_FOOD_TEST:SV_FOOD_RELEASE;
	
	public final String SC_SLEEP=MyConfig.DEBUG?SC_SLEEP_TEST:SC_SLEEP_RELEASE;
	public final String SV_SLEEP=MyConfig.DEBUG?SV_SLEEP_TEST:SV_SLEEP_RELEASE;
	
	public final String SC_SPO2=MyConfig.DEBUG?SC_SPO2_TEST:SC_SPO2_RELEASE;
	public final String SV_SPO2=MyConfig.DEBUG?SV_SPO2_TEST:SV_SPO2_RELEASE;
	
	public final String SC_SPORT=MyConfig.DEBUG?SC_SPORT_TEST:SC_SPORT_RELEASE;
	public final String SV_SPORT=MyConfig.DEBUG?SV_SPORT_TEST:SV_SPORT_RELEASE;
	
	public final String SC_USERINFO=MyConfig.DEBUG?SC_USERINFO_TEST:SC_USERINFO_RELEASE;
	public final String SV_USERINFO=MyConfig.DEBUG?SV_USERINFO_TEST:SV_USERINFO_RELEASE;
	
	public final String SC_WEIGHT=MyConfig.DEBUG?SC_WEIGHT_TEST:SC_WEIGHT_RELEASE;
	public final String SV_WEIGHT=MyConfig.DEBUG?SV_WEIGHT_TEST:SV_WEIGHT_RELEASE;
	
	/*End ihealth*/
	public final String USERID_IHEALTH_KEY="user_id_ihealth";
	public final String ACCESSTOKEN_IHEALTH_KEY="access_token_ihealth";
	public final String REFRESHTOKEN_IHEALTH_KEY="refresh_token_ihealth";
	
	public final String PATIENT_IHEALTH_POSITION_KEY="patient_ihealth_position";
	
	public int SINGLE_USER=0;
	public int CENTER_USER=1;
	public int userType = SINGLE_USER;
	
	public final String IHEALTH_NAME_KEY="ihealth_name_key";
	

	public static GlobalConstant getInstance() {
		if (mInstance == null) {
			mInstance = new GlobalConstant();
			if (MyConfig.DEBUG) {
				// test
				skypeProvider = "noname3454";
				skypeScheduler = "noname3454";
				skypeMedicalassistant = "noname3454";
				skypeBilling = "noname3454";
				// test
			}
		}
		return mInstance;
	}
}
